package com.platform.hjt.erp.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hjt.tools.dao.Page;
import com.hjt.tools.dao.PropertyFilter;
import com.platform.hjt.base.service.BaseService;
import com.platform.hjt.erp.dao.ErpOrderInfoDetailDAO;
import com.platform.hjt.erp.model.ErpOrderInfoDetail;

@Service
public class ErpOrderInfoDetailService extends BaseService{

	@Resource
	private ErpOrderInfoDetailDAO erpOrderInfoDetailDAO;
	
	public Page<ErpOrderInfoDetail> getErpOrderInfoDetailList(Page<ErpOrderInfoDetail> page, List<PropertyFilter> propertyFilterList){
		return erpOrderInfoDetailDAO.findPage(page, propertyFilterList);
	}
	
	public List<ErpOrderInfoDetail> getErpOrderInfoDetailList(List<PropertyFilter> filters){
		return erpOrderInfoDetailDAO.find(filters);
	}
	
	public ErpOrderInfoDetail getErpOrderInfoDetail(List<PropertyFilter> filters){
		return erpOrderInfoDetailDAO.findUniqueBy(filters);
	}
	
	public ErpOrderInfoDetail getErpOrderInfoDetail(String propertyName, Object value){
		return erpOrderInfoDetailDAO.findUniqueBy(propertyName, value);
	}
	
}
